package servic.impl;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import pojo.Customer;
import service.CustomerManager;

public class CustomerManagerImplMock implements CustomerManager {

	private List<Customer> list = new ArrayList<Customer>();
	
	public CustomerManagerImplMock(){
		Customer customer =new Customer(1, "aaa", 123.45, new Date(), true, new String[]{"sport","read"});
		list.add(customer);
	}
	
	@Override
	public int addCustomer(Customer c) {
		// TODO Auto-generated method stub
		list.add(c);
		return 1;
	}

	@Override
	public List<Customer> findAllCustomers() {
		// TODO Auto-generated method stub
		return list;
	}

	@Override
	public int updateCustomer(Customer c) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int deleteCustomer(Integer id) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public String[] getCustomerHobby(Integer id) {
		// TODO Auto-generated method stub
		return null;
	}

}
